import Seqimport


def load_file(file_name):
    """
    Loads a sequence file and parses it on the fly. Returns a Parse object.
    (Requires filename as a parameter.)
    """
    return Seqimport.Parse(file_name, "r")


def find_motif(motif, parsed_file):
    """
    Returns sites that have been found in a Parse object.
    """
    return parsed_file.motif_finder(motif. parsed_file.run())
